//
//  UIView+Frame.m
//  01_UIView_UIWindow
//
//  Created by li cheng on 16/7/14.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
- (void)setLc_x:(CGFloat)lc_x{
    CGRect recct = self.frame;
    recct.origin.x = lc_x;
    self.frame = recct;
}

- (CGFloat)lc_x{
    return self.frame.origin.x;
}

-(void)setLc_y:(CGFloat)lc_y{
    CGRect rect = self.frame;
    rect.origin.y = lc_y;
    self.frame = rect;
}

- (CGFloat)lc_y{
    return self.frame.origin.y;
}


- (void)setLc_width:(CGFloat)lc_width{
    CGRect rect = self.frame;
    rect.size.width = lc_width;
    self.frame = rect;
}

- (CGFloat)lc_width{
    return self.frame.size.width;
}

- (void)setLc_height:(CGFloat)lc_height{
    CGRect rect = self.frame;
    rect.size.height = lc_height;
    self.frame = rect;
}

- (CGFloat)lc_height{
    return self.frame.size.height;
}

@end
